export const confirm = (proxy, tips, type) => {
    return new Promise(resolve => {
        proxy.$modal.confirm(
            tips,
            '系统提示',
            {
                confirmButtonText: '确认',
                cancelButtonText: '取消',
                type: type || 'warning',
            }
        ).then(() => {
           resolve(true);
        }).catch(() => {
            resolve(false);
        })
    })
}